
************************************************
*** Appendix - robustness:

**************************
*** zeta = 2
import delimited using "model\results_model\cf_for_stata_zeta2.csv", clear

rename v1 cz
rename v2 decade
rename v3 mod_popgr_throut_noa
rename v4 mod_popgr_throut_noa_intra
rename v5 mod_popgr_throut_noa_nomigr

merge 1:1 cz decade using dsets\cz_data\dataset_reduced_form_cpp.dta
xtset cz decade, delta(20)

*** Appendix Table F.7, Panel A:
* column 1:
reghdfe pop_growth exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 3:
reghdfe mod_popgr_throut_noa exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 6:
reghdfe mod_popgr_throut_noa_intra exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)

**************************
*** zeta = 6
import delimited using "model\results_model\cf_for_stata_zeta6.csv", clear

rename v1 cz
rename v2 decade
rename v3 mod_popgr_throut_noa
rename v4 mod_popgr_throut_noa_intra
rename v5 mod_popgr_throut_noa_nomigr

merge 1:1 cz decade using dsets\cz_data\dataset_reduced_form_cpp.dta
xtset cz decade, delta(20)

*** Appendix Table F.7, Panel A:
* column 1:
reghdfe pop_growth exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 4:
reghdfe mod_popgr_throut_noa exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 7:
reghdfe mod_popgr_throut_noa_intra exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)

**************************
*** omega = -0.392
import delimited using "model\results_model\cf_for_stata_omega_0p392.csv", clear

rename v1 cz
rename v2 decade
rename v3 mod_popgr_throut_noa
rename v4 mod_popgr_throut_noa_intra
rename v5 mod_popgr_throut_noa_nomigr

merge 1:1 cz decade using dsets\cz_data\dataset_reduced_form_cpp.dta
xtset cz decade, delta(20)

*** Appendix Table F.7, Panel B
* column 1:
reghdfe pop_growth exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 3:
reghdfe mod_popgr_throut_noa exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 6:
reghdfe mod_popgr_throut_noa_intra exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)

**************************
*** omega = -0.039
import delimited using "model\results_model\cf_for_stata_omega_0p039.csv", clear

rename v1 cz
rename v2 decade
rename v3 mod_popgr_throut_noa
rename v4 mod_popgr_throut_noa_intra
rename v5 mod_popgr_throut_noa_nomigr

merge 1:1 cz decade using dsets\cz_data\dataset_reduced_form_cpp.dta
xtset cz decade, delta(20)

*** Appendix Table F.7, Panel B
* column 1:
reghdfe pop_growth exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 4:
reghdfe mod_popgr_throut_noa exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)
* column 7:
reghdfe mod_popgr_throut_noa_intra exposure log_lagged_population log_lagged_population_2 l.log_totpat_cz_decade l.hc_summary_ranking local_industry_shock if decade >= 1910 [weight = lagged_pop_share], absorb(decade_division_id) cluster(cz decade_division_id)

